<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>紫金</title>
<link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css">
<link rel="stylesheet" href="__PUBLIC__/css/admin.css">
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.validate.js"></script>

<script type="text/javascript">
     
	$(document).ready(
		function() {

			$("#loginform").validate({
				rules:{
					'username':{
						required: true
					},
					'password':{
						required: true
					}
				},
				messages:{
					'username':{
						required: "请填写用户名"						
					},
					'password':{
						required: "请输入密码"
					}
				}
			});
	});

</script>

</head>
<body>
<header role="banner" class="navbar navbar-inverse navbar-fixed-top bs-docs-nav">
  <div class="container">
    <div class="navbar-header">
      <button data-target=".bs-navbar-collapse" data-toggle="collapse" type="button" class="navbar-toggle collapsed">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">紫金</a>
    </div>
  </div>
</header>  

<div class="home-index">
  <div class="container">
    <div class="row">
      <div class="comm-box ">
        <div class="login-form">
        <form class="form-horizontal" id="loginform" role="form" method="post" action="__URL__/doLogin">
          <div class="form-group">
            <label class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-6">
              <input type="text" name="username" class="form-control" placeholder="请输入用户名">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">密码</label>
            <div class="col-sm-6">
              <input type="password" name="password" class="form-control"  placeholder="请输入密码">
            </div>
          </div>
          
          <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
              <button type="submit" class="btn btn-primary">登录</button>
            </div>
          </div>
        </form>
        </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>